<?php
Route::group([
	'prefix' => 'shop',
	'namespace' => 'Shop'
], function () {
	Route::group([
		'prefix' => 'shops',
	], function () {
		// 用户管理列表
		Route::get('/', 'ShopsController@index')->name('admin.shop.shops');
		//厂家审核
		Route::get('/refundShop', 'ShopsController@refundShop')->name('admin.shop.refund');
		// 添加用户
		Route::get('/add', 'ShopsController@add')->name('admin.shop.shops.add');
        Route::get('/shop_rule', 'ShopsController@shopRule')->name('admin.shop.shops.shop_rule');
        Route::post('/save_rule', 'ShopsController@saveRule')->name('admin.shop.shops.save_rule');
		// 编辑用户
		Route::get('/edit/{id}', 'ShopsController@edit')->name('admin.shop.shops.edit');
		Route::get('/comment/{id}', 'ShopsController@comment')->name('admin.shop.shops.comment');
        Route::get('/comment_add/{id}', 'ShopsController@comment_add')->name('admin.shop.shops.comment_add');
        Route::get('/comment_shen/{id}', 'ShopsController@comment_shen')->name('admin.shop.shops.comment_shen');
        Route::get('/comment_delete/{id}', 'ShopsController@comment_delete')->name('admin.shop.shops.comment_delete');
        Route::post('/comment_save', 'ShopsController@comment_save')->name('admin.shop.shops.comment_save');
        Route::post('/comment_refund', 'ShopsController@comment_refund')->name('admin.shop.shops.comment_refund');
		// 保存用户信息
		Route::post('/save', 'ShopsController@save')->name('admin.shop.shops.save');
		// 删除用户
		Route::get('/delete/{id}', 'ShopsController@delete')->name('admin.shop.shops.delete');
		Route::get('/changeShop/{id}', 'ShopsController@changeShop')->name('admin.shop.shops.changeShop');
		Route::get('/showPhone/{id}', 'ShopsController@showPhone')->name('admin.shop.shops.showPhone');
		Route::get('/recommend/{id}', 'ShopsController@recommend')->name('admin.shop.shops.recommend');
		//审核店铺
        Route::get('/shen/{id}', 'ShopsController@shen')->name('admin.shop.shops.shen');
        //审核店铺
        Route::post('/refund', 'ShopsController@refund')->name('admin.shop.shops.refund');
        Route::post('/rank', 'ShopsController@rank')->name('admin.shop.shops.rank');
	});
});